{include file="header.html"}
<body class="gr">

<div class="navBar">
	<a class="left" href="javascript:history.back()"><i class="return"></i></a>
	<div class="titleView-x">选择参保城市</div>
</div>

<div class="cart-province cart-city main-top">
	<div class="view search">
		<div><a href="javascript:void(0)"></a><input type="text" placeholder="请输入地区关键字" id="keyword" /></div>
	</div>
	<div class="view">
		{foreach from=$data item=g}
		<a href="javascript:void(0)" class="ge-bottom" province-id="{$g->province_id}" city-id="{$g->city_id}" end_day="{$g->end_day}" city="{$g->name}" name="{$g->province_name} {$g->name}">{$g->name}</a>
		{/foreach}
	</div>
</div>

{include file="footer.html"}
<script>
$(function(){
	bodyView.find('.search a').click(function(){
		var keyword = $(this).next().val();
		if(!keyword.length){
			bodyView.find('.view:not(.search) a').show();
		}else{
			bodyView.find('.view:not(.search) a').each(function(){
				if($(this).text().indexOf(keyword)>-1)$(this).show();
				else $(this).hide();
			});
		}
		bodyView.find('.view:not(.search) a').addClass('ge-bottom').filter(':visible:last').removeClass('ge-bottom');
	});
	bodyView.find('.view:not(.search) a:visible:last').removeClass('ge-bottom');
	bodyView.find('.view:not(.search) a').click(function(){
		
	});
});
</script>